import './index.html'
import dva from 'dva'
import createLoading from 'dva-loading';
import { useRouterHistory } from 'dva/router';
import { createHashHistory } from 'history';
const app = dva({
  history: useRouterHistory(createHashHistory)({ queryKey: false }),
});

// 2. Model

app.model(require('./models/app'));
app.model(require("./models/answer"));
app.model(require("./models/wilddog"));
app.model(require("./models/dashboard"));
// 3. Router
app.router(require('./router'));

// 4. Start
app.start('#root');
